package com.bzyd.mp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bzyd.mp.mapper.OrderMapper;
import com.bzyd.mp.model.po.Order;
import com.bzyd.mp.service.OrderService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单表(Order)表服务实现类
 *
 * @author makejava
 * @since 2022-04-02 00:35:26
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Override
    public PageInfo<Order> pageQuery(Integer currentPage, Integer pageSize) {
        PageHelper.startPage(currentPage, pageSize);
        List<Order> list = baseMapper.selectList(null);
        return new PageInfo<>(list);
    }
}

